package com.ihai.spring.boot.sample.es.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "elasticsearch")
public class EsConfiguration {
    private List<String> uris = new ArrayList<>();
    private Map<String,Map<String, Map<String,String>>> mapping = new HashMap<>();

    public List<String> getUris() {
        return uris;
    }
    public void setUris(List<String> uris) {
        this.uris = uris;
    }
    public Map<String, Map<String, Map<String, String>>> getMapping() {
        return mapping;
    }
    public void setMapping(Map<String, Map<String, Map<String, String>>> mapping) {
        this.mapping = mapping;
    }
}
